<template>
  <!-- 用户详情 首页 -->

  <el-row :gutter="20">
    <div v-if="userDeps && userDeps.length >0">
      <el-col v-for="(userDep ,i) in userDeps" :key="i" :xs="24" :md="12"><div class="info_detail_name">{{ userDep.depName || '-' }} </div><div class="info_detail_value">加入时间：{{ userDep.createTime || '-' }}</div></el-col>
    </div>
    <div v-if="!userDeps || userDeps.length <= 0">
      <el-col :xs="24">
        暂没有加入任何组织
      </el-col>
    </div>
  </el-row>

</template>

<script>

// 用户详情 - model
export const defaultUserRole = {
  id: null, // 用户关联id
  code: null,
  name: null, // 姓名
  // _parentInfo: {},
  isDel: 0

}
export default {
  props: {
    userDeps: {
      type: Array,
      default: () => { return [] }
    }
  },
  data() {
    return {

    }
  },
  mounted() {
    // console.log(this.userRoles)
  },
  methods: {
    // getRolesByUserId()
  }
}
</script>

<style lang="scss" scoped>

</style>
